﻿using Project.Core.Api.Common.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Project.Core.Api.Controllers.System.IMenu.Dto
{
    /// <summary>
    /// 菜单Dto
    /// </summary>
    public class MenuDto : BaseDto
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        [Required(ErrorMessage = "The MenuName is Required")]
        public string MenuName { get; set; }

        /// <summary>
        /// 菜单路由
        /// </summary>
        [Required(ErrorMessage = "The MenuPath is Required")]
        public string MenuPath { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        public string MenuIcon { get; set; }

        /// <summary>
        /// 所属父级
        /// </summary>
        public string Belong { get; set; }

        /// <summary>
        /// 操作权限 
        /// 增:insert 删:delete 改:update 查:select 导入:import 导出: export 
        /// </summary>
        public List<string> Operation { get; set; }

        /// <summary>
        /// 菜单子项
        /// </summary>
        public List<MenuDto> Children { get; set; }
    }
}
